// 查找 1000 以内的水仙花数
#include <stdio.h>
#include <math.h>

int main() {
    printf("Narcissistic numbers within 1000 are: ");
    for (int num = 100; num < 1000; ++num) {
        int originalNum = num, sum = 0;
        int temp = num;
        while (temp > 0) {
            int digit = temp % 10;
            sum += pow(digit, 3);
            temp /= 10;
        }
        if (sum == originalNum) {
            printf("%d ", originalNum);
        }
    }
    printf("\n");
    return 0;
}